<h1>Welcome to Index!</h1>

<h2>List of authors</h2>
<ul>
<? foreach ($this->authors as $author): ?>
	<li><?=$author->name ?>, <?=$author->email ?>, <?=$author->password ?>		
		<ul>	
			<?php foreach ($author->posts as $post):?>
			<li><?=$post->title ?>, <?=$post->datecreated ?>, <?=$post->content ?>, Author: <em><?=$post->author->name ?></em></li>
			<? endforeach; ?>
		</ul>
	</li>
<? endforeach; ?>
</ul>